<template>
	<view>
		<view class="list" @click="detail(1)">
			<view class="item">
				<image src="../../../static/user/ding.png"></image>
				<view class="right">
					<view>
						<text class="title">通知消息</text><text>9:30</text>
					</view>
					<view>
						内容内容内容内容内容内容
					</view>
				</view>
			</view>
		</view>
		<view class="list" @click="detail(2)">
			<view class="item">
				<image src="../../../static/user/msglistIcon.png"></image>
				<view class="right">
					<view>
						<text class="title">通知消息</text><text>9:30</text>
					</view>
					<view>
						内容内容内容内容内容内容
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			detail(type){
				uni.navigateTo({
					url:'/pagesB/msgDetail/msgDetail?type='+type
				})
			}
		}
	}
</script>

<style lang="scss">
.list{
	width:642rpx;
	height:120rpx;
	border-radius: 16rpx;
	background-color:#f9f9f9;
	margin:20rpx auto;
	padding: 20rpx;
	.item{
		width: auto;
		display: flex;
		image{
			width: 100rpx;
			height: 100rpx;
			margin-right: 10rpx;
		}
		.right{
			width:522rpx;
			view{
				display: flex;
				justify-content: space-between;
				font-size: 28rpx;
				font-family: PingFang SC-Medium, PingFang SC;
				font-weight: 500;
				color: #333333;
				line-height: 40rpx;
				margin-top: 10rpx;
			}
			.title{
				font-size: 30rpx;
				font-family: PingFang SC-Bold, PingFang SC;
				font-weight: bold;
				color: #333333;
				line-height:42rpx;
			}
		}
		
	}
}
</style>
